package com.ruibang.glass.sale.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruibang.glass.sale.domain.req.GSaleBackHouseOrderReq;
import com.ruibang.glass.sale.entity.GSaleBackHouseOrder;
import com.ruibang.glass.sale.mapper.GSaleBackHouseOrderMapper;
import com.ruibang.glass.sale.service.GSaleBackHouseOrderService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;


@Slf4j
@Service
public class GSaleBackHouseOrderServiceImpl extends ServiceImpl<GSaleBackHouseOrderMapper, GSaleBackHouseOrder> implements GSaleBackHouseOrderService {


    @Override
    public IPage<GSaleBackHouseOrder> getPage(GSaleBackHouseOrderReq gSaleBackHouseOrderReq) {
        return baseMapper.getPage(new Page<>(gSaleBackHouseOrderReq.getPageNo(),gSaleBackHouseOrderReq.getPageSize()),gSaleBackHouseOrderReq);
    }
}
